package com.qianniu.napi.admin.web.goods.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 商品子表网红单品
 * </p>
 *
 * @author hefl
 * @since 2023-12-16
 */
@TableName("t_goods_internet_product")
@Data
public class GoodsInternetProduct extends Model<GoodsInternetProduct> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 商品ID t_goods.id
     */
	private Long gid;
    /**
     * 商品
     */
	@TableField("goods_name")
	private String goodsName;
    /**
     * 数量
     */
	@TableField("goods_number")
	private Integer goodsNumber;
    /**
     * 价格
     */
	@TableField("goods_price")
	private BigDecimal goodsPrice;
    /**
     * 图片
     */
	@TableField("goods_pic")
	private String goodsPic;
    /**
     * 状态: 0-无效, 1-有效
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("updated_time")
	private Date updatedTime;



	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "GoodsInternetProduct{" +
			"id=" + id +
			", gid=" + gid +
			", goodsName=" + goodsName +
			", goodsNumber=" + goodsNumber +
			", goodsPrice=" + goodsPrice +
			", goodsPic=" + goodsPic +
			", state=" + state +
			", createTime=" + createTime +
			", updatedTime=" + updatedTime +
			"}";
	}
}
